home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.3 (Developer)…68k, x86, SPARC, PA-RISC] / NeXTSTEP 3.3 Dev Intel.iso / NextDeveloper / Source / GNU / cc / bc-optab.h < prev    next >
C/C++ Source or Header  |  1993-09-22  |  3KB  |  75 lines

  1. /* Bytecode token definitions for GNU C-compiler.
  2.    Copyright (C) 1993 Free Software Foundation, Inc.
  3.  
  4. This file is part of GNU CC.
  5.  
  6. GNU CC is free software; you can redistribute it and/or modify
  7. it under the terms of the GNU General Public License as published by
  8. the Free Software Foundation; either version 2, or (at your option)
  9. any later version.
  10.  
  11. GNU CC is distributed in the hope that it will be useful,
  12. but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14. GNU General Public License for more details.
  15.  
  16. You should have received a copy of the GNU General Public License
  17. along with GNU CC; see the file COPYING.  If not, write to
  18. the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
  19.  
  20.  
  21. extern void bc_expand_conversion ();
  22. extern void bc_expand_truth_conversion ();
  23. extern void bc_expand_binary_operation ();
  24. extern void bc_expand_unary_operation ();
  25.  
  26. struct binary_operator
  27. {
  28.   enum bytecode_opcode opcode;
  29.   enum typecode result;
  30.   enum typecode arg0;
  31.   enum typecode arg1;
  32. };
  33.  
  34. extern struct binary_operator optab_plus_expr[];
  35. extern struct binary_operator optab_minus_expr[];
  36. extern struct binary_operator optab_mult_expr[];
  37. extern struct binary_operator optab_trunc_div_expr[];
  38. extern struct binary_operator optab_trunc_mod_expr[];
  39. extern struct binary_operator optab_rdiv_expr[];
  40. extern struct binary_operator optab_bit_and_expr[];
  41. extern struct binary_operator optab_bit_ior_expr[];
  42. extern struct binary_operator optab_bit_xor_expr[];
  43. extern struct binary_operator optab_lshift_expr[];
  44. extern struct binary_operator optab_rshift_expr[];
  45. extern struct binary_operator optab_truth_and_expr[];
  46. extern struct binary_operator optab_truth_or_expr[];
  47. extern struct binary_operator optab_lt_expr[];
  48. extern struct binary_operator optab_le_expr[];
  49. extern struct binary_operator optab_ge_expr[];
  50. extern struct binary_operator optab_gt_expr[];
  51. extern struct binary_operator optab_eq_expr[];
  52. extern struct binary_operator optab_ne_expr[];
  53.  
  54. struct unary_operator
  55. {
  56.   enum bytecode_opcode opcode;
  57.   enum typecode result;
  58.   enum typecode arg0;
  59. };
  60.  
  61. extern struct unary_operator optab_negate_expr[];
  62. extern struct unary_operator optab_bit_not_expr[];
  63. extern struct unary_operator optab_truth_not_expr[];
  64.  
  65. struct increment_operator
  66. {
  67.   enum bytecode_opcode opcode;
  68.   enum typecode arg;
  69. };
  70.  
  71. extern struct increment_operator optab_predecrement_expr[];
  72. extern struct increment_operator optab_preincrement_expr[];
  73. extern struct increment_operator optab_postdecrement_expr[];
  74. extern struct increment_operator optab_postincrement_expr[];
  75.